
#导入扩展包flask_script
from flask_script import Manager

#导入扩展flask_migrate
from flask_migrate import Migrate, MigrateCommand

#导入程序实例
from info import create, db

from info import models

app = create("development")

#实例化管理器对象
manage = Manager(app)
#使用迁移框架
Migrate(app, db)
# 通过管理器对象集成迁移命令
manage.add_command('db', MigrateCommand)


if __name__ == '__main__':
    #查看路由映射
    print(app.url_map)
    manage.run()
